Integrand size = 23, antiderivative size = 198 \[ \int (c+d x)^4 \csc (a+b x) \sin (3 a+3 b x) \, dx=\frac {3 d^4 x}{2 b^4}-\frac {d (c+d x)^3}{b^2}+\frac {(c+d x)^5}{5 d}-\frac {9 d^3 (c+d x) \cos ^2(a+b x)}{2 b^4}+\frac {3 d (c+d x)^3 \cos ^2(a+b x)}{b^2}+\frac {3 d^4 \cos (a+b x) \sin (a+b x)}{b^5}-\frac {6 d^2 (c+d x)^2 \cos (a+b x) \sin (a+b x)}{b^3}+\frac {2 (c+d x)^4 \cos (a+b x) \sin (a+b x)}{b}+\frac {3 d^3 (c+d x) \sin ^2(a+b x)}{2 b^4}-\frac {d (c+d x)^3 \sin ^2(a+b x)}{b^2} \]
[Out]
Time = 0.31 (sec) , antiderivative size = 198, normalized size of antiderivative = 1.00, number of steps used = 14, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {4516, 3392, 32, 2715, 8} \[ \int (c+d x)^4 \csc (a+b x) \sin (3 a+3 b x) \, dx=\frac {3 d^4 \sin (a+b x) \cos (a+b x)}{b^5}+\frac {3 d^3 (c+d x) \sin ^2(a+b x)}{2 b^4}-\frac {9 d^3 (c+d x) \cos ^2(a+b x)}{2 b^4}-\frac {6 d^2 (c+d x)^2 \sin (a+b x) \cos (a+b x)}{b^3}-\frac {d (c+d x)^3 \sin ^2(a+b x)}{b^2}+\frac {3 d (c+d x)^3 \cos ^2(a+b x)}{b^2}+\frac {2 (c+d x)^4 \sin (a+b x) \cos (a+b x)}{b}+\frac {3 d^4 x}{2 b^4}-\frac {d (c+d x)^3}{b^2}+\frac {(c+d x)^5}{5 d} \]
[In]
[Out]
Rule 8
Rule 32
Rule 2715
Rule 3392
Rule 4516
Rubi steps \begin{align*} \text {integral}& = \int \left (3 (c+d x)^4 \cos ^2(a+b x)-(c+d x)^4 \sin ^2(a+b x)\right ) \, dx \\ & = 3 \int (c+d x)^4 \cos ^2(a+b x) \, dx-\int (c+d x)^4 \sin ^2(a+b x) \, dx \\ & = \frac {3 d (c+d x)^3 \cos ^2(a+b x)}{b^2}+\frac {2 (c+d x)^4 \cos (a+b x) \sin (a+b x)}{b}-\frac {d (c+d x)^3 \sin ^2(a+b x)}{b^2}-\frac {1}{2} \int (c+d x)^4 \, dx+\frac {3}{2} \int (c+d x)^4 \, dx+\frac {\left (3 d^2\right ) \int (c+d x)^2 \sin ^2(a+b x) \, dx}{b^2}-\frac {\left (9 d^2\right ) \int (c+d x)^2 \cos ^2(a+b x) \, dx}{b^2} \\ & = \frac {(c+d x)^5}{5 d}-\frac {9 d^3 (c+d x) \cos ^2(a+b x)}{2 b^4}+\frac {3 d (c+d x)^3 \cos ^2(a+b x)}{b^2}-\frac {6 d^2 (c+d x)^2 \cos (a+b x) \sin (a+b x)}{b^3}+\frac {2 (c+d x)^4 \cos (a+b x) \sin (a+b x)}{b}+\frac {3 d^3 (c+d x) \sin ^2(a+b x)}{2 b^4}-\frac {d (c+d x)^3 \sin ^2(a+b x)}{b^2}+\frac {\left (3 d^2\right ) \int (c+d x)^2 \, dx}{2 b^2}-\frac {\left (9 d^2\right ) \int (c+d x)^2 \, dx}{2 b^2}-\frac {\left (3 d^4\right ) \int \sin ^2(a+b x) \, dx}{2 b^4}+\frac {\left (9 d^4\right ) \int \cos ^2(a+b x) \, dx}{2 b^4} \\ & = -\frac {d (c+d x)^3}{b^2}+\frac {(c+d x)^5}{5 d}-\frac {9 d^3 (c+d x) \cos ^2(a+b x)}{2 b^4}+\frac {3 d (c+d x)^3 \cos ^2(a+b x)}{b^2}+\frac {3 d^4 \cos (a+b x) \sin (a+b x)}{b^5}-\frac {6 d^2 (c+d x)^2 \cos (a+b x) \sin (a+b x)}{b^3}+\frac {2 (c+d x)^4 \cos (a+b x) \sin (a+b x)}{b}+\frac {3 d^3 (c+d x) \sin ^2(a+b x)}{2 b^4}-\frac {d (c+d x)^3 \sin ^2(a+b x)}{b^2}-\frac {\left (3 d^4\right ) \int 1 \, dx}{4 b^4}+\frac {\left (9 d^4\right ) \int 1 \, dx}{4 b^4} \\ & = \frac {3 d^4 x}{2 b^4}-\frac {d (c+d x)^3}{b^2}+\frac {(c+d x)^5}{5 d}-\frac {9 d^3 (c+d x) \cos ^2(a+b x)}{2 b^4}+\frac {3 d (c+d x)^3 \cos ^2(a+b x)}{b^2}+\frac {3 d^4 \cos (a+b x) \sin (a+b x)}{b^5}-\frac {6 d^2 (c+d x)^2 \cos (a+b x) \sin (a+b x)}{b^3}+\frac {2 (c+d x)^4 \cos (a+b x) \sin (a+b x)}{b}+\frac {3 d^3 (c+d x) \sin ^2(a+b x)}{2 b^4}-\frac {d (c+d x)^3 \sin ^2(a+b x)}{b^2} \\ \end{align*}
Time = 0.43 (sec) , antiderivative size = 128, normalized size of antiderivative = 0.65 \[ \int (c+d x)^4 \csc (a+b x) \sin (3 a+3 b x) \, dx=c^4 x+2 c^3 d x^2+2 c^2 d^2 x^3+c d^3 x^4+\frac {d^4 x^5}{5}+\frac {d (c+d x) \left (-3 d^2+2 b^2 (c+d x)^2\right ) \cos (2 (a+b x))}{b^4}+\frac {\left (3 d^4-6 b^2 d^2 (c+d x)^2+2 b^4 (c+d x)^4\right ) \sin (2 (a+b x))}{2 b^5} \]
[In]
[Out]
Time = 1.91 (sec) , antiderivative size = 226, normalized size of antiderivative = 1.14
method | result | size |
risch | \(\frac {d^{4} x^{5}}{5}+c \,d^{3} x^{4}+2 c^{2} d^{2} x^{3}+2 c^{3} d \,x^{2}+c^{4} x +\frac {c^{5}}{5 d}+\frac {d \left (2 b^{2} d^{3} x^{3}+6 b^{2} c \,d^{2} x^{2}+6 b^{2} c^{2} d x +2 b^{2} c^{3}-3 d^{3} x -3 c \,d^{2}\right ) \cos \left (2 x b +2 a \right )}{b^{4}}+\frac {\left (2 d^{4} x^{4} b^{4}+8 b^{4} c \,d^{3} x^{3}+12 b^{4} c^{2} d^{2} x^{2}+8 b^{4} c^{3} d x +2 b^{4} c^{4}-6 b^{2} d^{4} x^{2}-12 b^{2} c \,d^{3} x -6 b^{2} c^{2} d^{2}+3 d^{4}\right ) \sin \left (2 x b +2 a \right )}{2 b^{5}}\) | \(226\) |
default | \(\text {Expression too large to display}\) | \(1000\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 283, normalized size of antiderivative = 1.43 \[ \int (c+d x)^4 \csc (a+b x) \sin (3 a+3 b x) \, dx=\frac {b^{5} d^{4} x^{5} + 5 \, b^{5} c d^{3} x^{4} + 10 \, {\left (b^{5} c^{2} d^{2} - b^{3} d^{4}\right )} x^{3} + 10 \, {\left (b^{5} c^{3} d - 3 \, b^{3} c d^{3}\right )} x^{2} + 10 \, {\left (2 \, b^{3} d^{4} x^{3} + 6 \, b^{3} c d^{3} x^{2} + 2 \, b^{3} c^{3} d - 3 \, b c d^{3} + 3 \, {\left (2 \, b^{3} c^{2} d^{2} - b d^{4}\right )} x\right )} \cos \left (b x + a\right )^{2} + 5 \, {\left (2 \, b^{4} d^{4} x^{4} + 8 \, b^{4} c d^{3} x^{3} + 2 \, b^{4} c^{4} - 6 \, b^{2} c^{2} d^{2} + 3 \, d^{4} + 6 \, {\left (2 \, b^{4} c^{2} d^{2} - b^{2} d^{4}\right )} x^{2} + 4 \, {\left (2 \, b^{4} c^{3} d - 3 \, b^{2} c d^{3}\right )} x\right )} \cos \left (b x + a\right ) \sin \left (b x + a\right ) + 5 \, {\left (b^{5} c^{4} - 6 \, b^{3} c^{2} d^{2} + 3 \, b d^{4}\right )} x}{5 \, b^{5}} \]
[In]
[Out]
Timed out. \[ \int (c+d x)^4 \csc (a+b x) \sin (3 a+3 b x) \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 244, normalized size of antiderivative = 1.23 \[ \int (c+d x)^4 \csc (a+b x) \sin (3 a+3 b x) \, dx=\frac {{\left (b x + \sin \left (2 \, b x + 2 \, a\right )\right )} c^{4}}{b} + \frac {2 \, {\left (b^{2} x^{2} + 2 \, b x \sin \left (2 \, b x + 2 \, a\right ) + \cos \left (2 \, b x + 2 \, a\right )\right )} c^{3} d}{b^{2}} + \frac {{\left (2 \, b^{3} x^{3} + 6 \, b x \cos \left (2 \, b x + 2 \, a\right ) + 3 \, {\left (2 \, b^{2} x^{2} - 1\right )} \sin \left (2 \, b x + 2 \, a\right )\right )} c^{2} d^{2}}{b^{3}} + \frac {{\left (b^{4} x^{4} + 3 \, {\left (2 \, b^{2} x^{2} - 1\right )} \cos \left (2 \, b x + 2 \, a\right ) + 2 \, {\left (2 \, b^{3} x^{3} - 3 \, b x\right )} \sin \left (2 \, b x + 2 \, a\right )\right )} c d^{3}}{b^{4}} + \frac {{\left (2 \, b^{5} x^{5} + 10 \, {\left (2 \, b^{3} x^{3} - 3 \, b x\right )} \cos \left (2 \, b x + 2 \, a\right ) + 5 \, {\left (2 \, b^{4} x^{4} - 6 \, b^{2} x^{2} + 3\right )} \sin \left (2 \, b x + 2 \, a\right )\right )} d^{4}}{10 \, b^{5}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 1255 vs. \(2 (190) = 380\).
Time = 0.44 (sec) , antiderivative size = 1255, normalized size of antiderivative = 6.34 \[ \int (c+d x)^4 \csc (a+b x) \sin (3 a+3 b x) \, dx=\text {Too large to display} \]
[In]
[Out]
Time = 26.45 (sec) , antiderivative size = 344, normalized size of antiderivative = 1.74 \[ \int (c+d x)^4 \csc (a+b x) \sin (3 a+3 b x) \, dx=\frac {\frac {3\,d^4\,\sin \left (2\,a+2\,b\,x\right )}{2}+b^5\,c^4\,x+b^4\,c^4\,\sin \left (2\,a+2\,b\,x\right )+\frac {b^5\,d^4\,x^5}{5}+2\,b^3\,c^3\,d\,\cos \left (2\,a+2\,b\,x\right )+2\,b^5\,c^3\,d\,x^2+b^5\,c\,d^3\,x^4-3\,b^2\,c^2\,d^2\,\sin \left (2\,a+2\,b\,x\right )+2\,b^3\,d^4\,x^3\,\cos \left (2\,a+2\,b\,x\right )+2\,b^5\,c^2\,d^2\,x^3-3\,b^2\,d^4\,x^2\,\sin \left (2\,a+2\,b\,x\right )+b^4\,d^4\,x^4\,\sin \left (2\,a+2\,b\,x\right )-3\,b\,c\,d^3\,\cos \left (2\,a+2\,b\,x\right )-3\,b\,d^4\,x\,\cos \left (2\,a+2\,b\,x\right )+6\,b^4\,c^2\,d^2\,x^2\,\sin \left (2\,a+2\,b\,x\right )-6\,b^2\,c\,d^3\,x\,\sin \left (2\,a+2\,b\,x\right )+4\,b^4\,c^3\,d\,x\,\sin \left (2\,a+2\,b\,x\right )+6\,b^3\,c^2\,d^2\,x\,\cos \left (2\,a+2\,b\,x\right )+6\,b^3\,c\,d^3\,x^2\,\cos \left (2\,a+2\,b\,x\right )+4\,b^4\,c\,d^3\,x^3\,\sin \left (2\,a+2\,b\,x\right )}{b^5} \]
[In]
[Out]